<template>
    <div class="page">
      <div class="hd">
        <!-- <div v-if="props.title">{{ props.title }}</div> -->
        <slot name="hd"></slot>
      </div>
      <div class="ct">
        <slot name="ct"></slot>
      </div>
      <div class="ft">
        <div class="footer"><slot name="ft"></slot></div>
      </div>
    </div>
  </template>
  <style scoped lang="scss">
  .page {
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 10px;
  }
  .hd{
    background-color: #f8f8f9;
    border: 1px solid #ccc;
    border-radius: 5px;
  }
  .ct {
    height: 0;
    flex: 1;
    padding: 5px;
    /* margin: 2px 20px 0; */
  }
  .ft{
    height: 40px;
    position: relative;
    .footer{
      position: absolute;
      right: 20px;
      bottom: 5px;
    }
  }
  </style>
